package com.erlang4j.api.exceptions;

import com.ericsson.otp.erlang.OtpErlangObject;
import com.erlang4j.api.IBinding;
import com.erlang4j.internal.exceptions.Erlang4jException;
import com.erlang4j.internal.exceptions.Erlang4jExceptionConstants;

/**
 * This is thrown when an OtpErlangObject is processed by the MessageProcessor, and none of the handlers knows how to
 * consume it
 */
public class Erlang4jUnhandledMessageException extends Erlang4jException {

	public Erlang4jUnhandledMessageException(OtpErlangObject object, IBinding matchingBinding) {
		super(Erlang4jExceptionConstants.unhandledMessageExceptionKey, object, matchingBinding);
	}

}
